﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    音频资源管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "音频资源管理"); %>
    <% using (Ajax.BeginForm("CommonListUc", new { type = 4 } ,new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "listDiv" }))
       {%>  <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <tr class="box03">
            <td height="27" align="center">
                <div align="right">
                    标题 :</div>
            </td>
            <td align="left">
                <input type="text" name="title" />
                <input type="submit" value="查询" />
            </td> <td height="28" colspan="4" align="center">
               
                <div align="center">
                    <%=Ajax.ActionLink("全部", "CommonListUc", new { type = 4,minType=0 }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "listDiv" })%>
                    <%=Ajax.ActionLink("教师上传", "CommonListUc", new { type = 4, minType = 1 }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "listDiv" })%>
                    <%=Ajax.ActionLink("学生上传", "CommonListUc", new { type = 4, minType = 2 }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "listDiv" })%>
                    <%=Ajax.ActionLink("未审核", "CommonListUc", new { type = 4, minType = 0,isReview=0 }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "listDiv" })%>
                     <%=Html.ActionButton("新增", "CommonEdit",new{type=4})%>
                </div>
            </td>
        </tr>
    </table>  <% }
    %>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <div id="listDiv">
        <% Html.RenderAction("CommonListUc", new {type=4 }); %>
    </div>
      <div id="viewDiv" title="浏览">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
        <script type="text/javascript">
            $(function () {
                $("#viewDiv").dialog({
                    autoOpen: false,
                    height: 600,
                    width: 700,
                    modal: true,
                    close: function () {
                        $("#viewDiv").html("loading...");
                    }
                });
            });

            var openClickA = function (id) {
                $("#viewDiv").html("loading...");
                $("#viewDiv").load(appRoot + 'AdminResources/CommonViewUc/' + id + "?rd=" + rdTime());
                $("#viewDiv").dialog("open");
            };
        
    </script>
</asp:Content>
